//
//  LWHttpTool.h
//  豆瓣
//
//  Created by 刘伟 on 16/7/7.
//  Copyright © 2016年 刘伟. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^ArrayBlock)(id resultArr);
typedef void(^FailError)(NSError*error);
@interface LWHttpTool : NSObject
//get请求
+(void)getdata:(NSString*)url andPara:(NSDictionary*)dict andCompleteBlock:(ArrayBlock)successBlock andFail:(FailError)error;
+(void)postdata:(NSString*)url andPara:(NSDictionary*)dict andCompleteBlock:(ArrayBlock)successBlock andFail:(FailError)error;
@end
